import React from 'react'
import { connect } from 'react-redux'
import {action} from './store'
class View extends React.Component{
    constructor(props){
        super(props)
        this.state = {
            text:'五大三粗'
        }
    }
    render(){
        return(
            <div>
                123
            </div>
        )
    }
}
const mapStateToProps=(state)=>{

}
const mapDispatchToProps=(dispatch,ownProps)=>{
    return {
        fn:(text)=>dispatch(action.Fn(text))
    }
}
export default connect(mapStateToProps,mapDispatchToProps)(View)